-
Notifications
You must be signed in to change notification settings - Fork 97
Conversation
…ger' functions" errors at linking process)
Hi, @khoih-prog. |
There are many libraries currently using this new better way of aaa.h and aaa_Impl.h because of some benefits. It's possibly not compatible with the way you're using: mixing aaa.h, aaa_Impl.h and multiple cpp files. I suggest you do this way to be compatible with this library and many more
I also attach the zipped files of your whole project motor-on-roller-blind-ws, already converted to use this ESP_WiFiManager for you to try |
@khoih-prog, can you describe some benefits of such naming please? I was sure that your library is some replacement of popular tzapu / WiFiManager, and application was quite easy adapted for it during movement to ESP32. |
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](#38) and [`Support building in PlatformIO PR`](#20). SSee [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/ESP_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](khoih-prog/ESPAsync_WiFiManager#16).
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](#38) and [`Support building in PlatformIO PR`](#20). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESP_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](khoih-prog/ESPAsync_WiFiManager#16).
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](khoih-prog/ESP_WiFiManager#38) and [`Support building in PlatformIO PR`](khoih-prog/ESP_WiFiManager#20). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](#16).
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](khoih-prog/ESP_WiFiManager#38) and [`Support building in PlatformIO PR`](khoih-prog/ESP_WiFiManager#20). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](#16).
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](khoih-prog/ESP_WiFiManager#38) and [`Support building in PlatformIO PR`](khoih-prog/ESP_WiFiManager#20). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](#16).
There are bunch of "multiple definition of 'ESP_WiFiManager' functions" errors at linking process in PlatformIO like:
I'm not experienced CPP-developer, but there shouldn't be a implementation inside headers, it should be in .cpp.
This pull request fixes that and it's building ok in Platformio now.
I don't have configured Arduino IDE, so it's not tested there actually. Will be great if someone test in Arduino IDE before merging also.
Thanks.